<?php

namespace App\Http\Requests\Admin\StoreController;

use App\Http\Requests\BaseRequest;
use Illuminate\Foundation\Http\FormRequest;

class doRule extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'store_name'=>'required',
            'province'=>'required',
            'city'=>'required',
            'area'=>'required',
        ];
    }

    public function messages()
    {
        return [
            'store_name.required' => '填写門店名称!',
            'province.required' => '填写省!',
            'city.required' => '填写市!',
            'area.required' => '填写区!',
        ];
    }
}
